package com.hksj.base.query;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

@Data
public class BaseRecordQuery extends BaseTaosSpecialityQuery {
    @NotBlank(message = "设备id不能为空")
    @ApiModelProperty("设备id")
    private String deviceId;

    @ApiModelProperty("周期 1 = 最近24小时 2 = 最近7天 3 = 最近30天 4 = 最近一年 5=最近半年")
    private Integer type;

    @ApiModelProperty("属性名称")
    private String property;

    @JsonIgnore
    @ApiModelProperty("查询开始时间")
    private Long startTime;

    @JsonIgnore
    @ApiModelProperty("查询结束时间")
    private Long endTime;
}
